﻿@{ViewData.TemplateInfo.HtmlFieldPrefix = ViewData.TemplateInfo.HtmlFieldPrefix.Replace(ViewData.ModelMetadata.PropertyName, "").Trim('.');
  var propertyName = ViewData["name"] == null ? ViewData.ModelMetadata.PropertyName : ViewData["name"].ToString(); }
<tr>
    <th>
        <label for="@ViewData.TemplateInfo.GetFullHtmlFieldId(propertyName)">
            @ViewData.ModelMetadata.GetDisplayName().Localize()</label>
    </th>
    <td>
        <input type="file" name="<%: propertyName%>" />
        <% if (!string.IsNullOrEmpty(ViewData.ModelMetadata.Description)) {%> <a href="#"
            class="tooltip-link" title="<%: ViewData.ModelMetadata.Description %>"></a><%}
        %> <%: Html.ValidationMessage(ViewData.ModelMetadata, new { name = ViewData["name"]
        })%>
    </td>
</tr>
